import request from "@/plugins/request";
import axios from "axios";

var pre = "/rvhealth/power";

if (process.env.NODE_ENV !== "development") {
    pre = '/api/rvsa/rv-health' + pre;
}


// 根据用户标识id查询
export function getByUserId(query) {
  return request({
    url: `${pre}/getByUserId`,
    method: 'get',
    params: query
  })
}


// 新增个人授权委托书
export function addPower(data) {
  return request({
    url: `${pre}/add`,
    method: 'post',
    data: data
  })
}

